package cn.cai.mapper;

import cn.cai.pojo.ReportLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ReportLogMapper {
    /**
     * 添加一条日志
     * @param log 日志对象
     * @return 受影响数
     */
    @Insert("insert into report_log(xh, report_date, mail_send_date,remark) VALUE (#{log.xh},#{log.reportDate},#{log.mailSendDate},#{log.remark})")
    Integer addLog(@Param("log") ReportLog log);
}
